from typing import Optional, List

from pydantic import BaseModel


class RoleBase(BaseModel):
    role_name: Optional[str]


class RoleCreate(RoleBase):
    others: Optional[str] = None


class RoleInDB(RoleBase):
    id: Optional[int] = None
    others: Optional[str] = None

    class Config:
        orm_mode = True


class Role(RoleInDB):
    pass

